package com.ruoyi.web.controller.websocket;


import com.ruoyi.framework.websocket.WebSocketService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/websocket")
public class WebSocketController {

    @GetMapping("/pushone")
    public void pushone()
    {
        WebSocketService.sendMessage("admin","我智商低");
    }
}
